package cn.kgc.easybuy.service;

import cn.kgc.easybuy.pojo.User;
import com.github.pagehelper.PageInfo;

import java.util.Map;

/**
 * @program: yingzi-wants-to-sleep
 * @description:
 * @author: 敖成
 * @create: 2025-09-10 10:57
 **/
public interface UserService {

    PageInfo<User> selectUserByPage(Map<String, Object> params);

    User selectUserById(Integer id);

    User login(String loginName, String password);

    boolean delUser(Integer id);

    boolean addUser(User user);

    boolean updateUser(User user);

    boolean checkLoginName(String loginName);

    boolean checkEmail(String email);

    boolean checkMobile(String mobile);

    boolean checkIdentityCode(String identityCode);

    boolean checkPassword(User user);

    User selectUserByEmail(String email);

    boolean sendEmail(String email, String code);
}
